<?php   
// Date: 2013-12-27
//error_reporting(E_ALL);
//ini_set('display_errors','ON');
$redis = new Redis();  
$redis->connect('127.0.0.1',6379);
$redis->set('Title','Redis Test By Luxiaok');  
$redis->set('Test','Hello World!');
$redis->set('By','LNMP By Luxiaok');
$info = array();
$info = $redis->info();

echo '<head><title>';
echo $redis->get('Title');
echo '</title></head>';
echo '<h2><b>PHP Redis Test</b></h2><br />';
echo $redis->get('Test'); 
echo '<br />';
echo 'Redis Server Version : ';
echo print_r($info['redis_version'],true);
//echo '<br />'; 
//echo print_r($info,true);
echo '<br />'; 
echo 'Powered by : ';
echo $redis->get('By'); 
echo '<br />';

?>
